package com.wyh.service;


import com.wyh.common.response.PageInfo;
import com.wyh.entity.AdminMasterLiveRoom;
import com.wyh.request.AdminMasterLiveRoomRequest;

import java.util.List;

/**
 * 主播直播间信息接口
 *
 * @author WangYuHang
 * @date 2024-03-03
 */
public interface IAdminMasterLiveRoomService {
    /**
     * 新增
     *
     * @param param param
     * @return AdminMasterLiveRoom
     */
    AdminMasterLiveRoom add(AdminMasterLiveRoomRequest param);

    /**
     * 删除
     *
     * @param id id
     * @return boolean
     */
    boolean delete(Integer id);

    /**
     * 批量删除
     *
     * @param ids ids
     * @return boolean
     */
    boolean deleteBatch(List<Integer> ids);

    /**
     * 更新
     *
     * @param param param
     * @return boolean
     */
    boolean update(AdminMasterLiveRoomRequest param);

    /**
     * 查询单条数据，Specification模式
     *
     * @param id id
     * @return AdminMasterLiveRoom
     */
    AdminMasterLiveRoom getById(Integer id);

    /**
     * 查询分页数据
     *
     * @param param param
     * @return PageInfo<AdminMasterLiveRoom>
     */
    PageInfo<AdminMasterLiveRoom> pageList(AdminMasterLiveRoomRequest param);


    /**
     * 查询所有数据
     *
     * @return List<AdminMasterLiveRoom>
     */
    List<AdminMasterLiveRoom> list(AdminMasterLiveRoomRequest param);
}
